package com.bbt.dormassistant.service;

import com.bbt.dormassistant.entity.Notice;

import java.util.List;

public interface NoticeService {


    /**
     *
     * @param userId 用户ID
     * @param tittle 标题
     * @param text 内容
     * @return Boolean
     */
    Boolean addNotice(String userId,String tittle,String text);


    /**
     *
     * @param noticeId 需要被删除的告示ID
     * @return Boolean
     */
    Boolean deleteNotice(int noticeId);


    /**
     *
     * @param currIndex 当前页
     * @param pageSize 页大小
     * @return List<Notice>
     */
    List<Notice> queryAllNotice(Integer currIndex,Integer pageSize);

}
